<%@page import="utils.Printer"%>
<%@ page language="java" contentType="text/html; charset=windows-1255"
    pageEncoding="windows-1255"%>
<% 
if (request.getSession(false) == null || request.getSession(false).getAttribute("username") == null){
	response.sendError(HttpServletResponse.SC_FORBIDDEN, "Please login first!");
	return;
}

if (!request.getSession(false).getAttribute("type").equals("admin")) {
	response.sendError(HttpServletResponse.SC_FORBIDDEN, "Only admininistrator can manage users");
	return;
}
%>

<h2>All Administrators:</h2>
<% Printer.printUsers(getServletContext(), out, "RemoveUsersFromDB", true); %>
